import HttpHandler from "@/handler/HttpHandler"
import {addParamsForPath} from '@/utils/xhrPathTurn'
export default class ModelManageApi {

  constructor() {
    this.http = new HttpHandler()
  }

  //获取模型管理列表
  list(data){
    let url = '/workflow/model/list'
    return this.http.post(url, data)
  }
  //新增模型
  addItem(data){
    let url = '/workflow/model/addItem'
    return this.http.post(url, data)
  }
  // 删除模型
  delete(data){
    let url = '/workflow/model/delete'
    return this.http.post(addParamsForPath(url, data))
  }
  // 部署模型
  deploy(data){
    let url = '/workflow/model/deploy'
    return this.http.post(addParamsForPath(url, data))
  }
  // 预览模型xml
  preView(data){
    let url = '/workflow/model/preView'
    return this.http.post(addParamsForPath(url, data))
  }
}
